Report for the period from
<input type="date" name="from-date"> to <input type="date" name="to-date">
<input type="button" value="Generate" id="generate-btn" />
<a style="position: absolute; right: 5px; padding-top: -4px;" href="">
    <input type="button" value="Generate report from last 6 mounth"/>
</a>
<div class="box" style="width: 100%;">
    <table class="table" rules=all>
        <tr>
            <td>User name</td>
            <td>Product category</td>
            <td>Product template</td>
            <td>Quantity(period)</td>
            <!--            <td>Quantity(current mounth)</td>
                        <td>Quantity(previous mounth)</td>
                        <td>Quantity(last 2 mounth)</td>-->
            <td>Quantity(total)</td>
        </tr>

        <%
            for (int i = 0; i < 10; i++) {
        %>
        <tr>
            <td>Ivanov Ivan</td>
            <td>Internet</td>
            <td>BestEthernet</td>
            <td>100</td>
            <!--            <td>100</td>
                        <td>100</td>
                        <td>100</td>-->
            <td>100</td>
        </tr>
        <% }%>
    </table>
</div>

<%
    int goodsAmount = 100;
    int count = 15;
    int pageCount = 1;
    int pages = (int) (goodsAmount / count);
    if (goodsAmount % count != 0) {
        pages++;
    }
%>

<div id="pagination">
    <%
        if (pageCount > 1) {
    %>

    <a href=""><<</a>

    <%    } else {
    %>      
    <span id="selected-page"><<</span>
    <%        }
        if (pageCount > 1) {
    %>

    <a href=""><</a>

    <%    } else {
    %>      

    <span id="selected-page"><</span>

    <%        }

        if (pageCount - 1 > 0) {
    %>

    <a href=""><%= pageCount - 1%></a>

    <%
        }
    %>

    <span id="selected-page"><%= pageCount%></span>

    <%
        if (pageCount + 1 <= pages) {
    %>

    <a href=""><%= pageCount + 1%></a>

    <%
        }
        if (pages != pageCount) {
    %>

    <a href="">></a>

    <%    } else {
    %>
    <span id="selected-page">></span>
    <%        }
    %>


    <%
        if (pageCount != pages) {
    %>
    <a href="">>></a>
    <%    } else {
    %>      
    <span id="selected-page">>></span>
    <%        }
    %>

    <div id="results">Show <%= pageCount%> of <%= pages%> pages</div>
</div>


